﻿using NhanAi.DAO;
using NhanAi.DAO.Mix;
using NhanAi.Entity;
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace NhanAi.Public
{
    public partial class Page : PublicBasePage
    {
        Post post;      
        public Post Post { get { return post; } }
    
        protected override void InitializeCulture()
        {
            base.InitializeCulture();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            PostDao daoPost = new PostDao();
            //CommentDao daoCom = new CommentDao();
            string name=Request["name"]==null?"empty":Request["name"];
            Post p = daoPost.Read(name,"page", CurrentLanguageCode);
            this.post = p;

        }
    }
}